package com.xbongbong.pro.detailtab.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: 汪腾伟
 * @date: 2020/9/30
 * @desrcption: 关联新建之前需要做的事情
 * @version:1.0
 */
@Getter
@Setter
@ToString
public class LinkAddBeforeDTO extends BaseDTO{

    private static final long serialVersionUID = -7437529981546913030L;

    /**
     * 数据id
     */
    @NotNull(message = "{dto.msg.linkAddBefore.dataIdList.NotNull}")
    private List<Long> dataIdList;
    /**
     * saas标记
     */
    @NotNull(message = "{dto.msg.linkAddBefore.saasMark.NotNull}")
    @DecimalMin(value = "1", message = "{dto.msg.linkAddBefore.saasMark.DecimalMin}")
    @DecimalMax(value = "1", message = "{dto.msg.linkAddBefore.saasMark.DecimalMax}")
    private Integer saasMark;
    /**
     * 业务类型
     */
    @NotNull(message = "{dto.msg.linkAddBefore.businessType.NotNull}")
    private Integer businessType;
    /**
     * 关联的业务类型
     */
    @NotNull(message = "{dto.msg.linkAddBefore.linkBusinessType.NotNull}")
    private Integer linkBusinessType;
    /**
     * 子业务类型
     */
}
